package com.zat.mes.andrmes.dofun.work.adapter

import android.text.TextUtils
import android.widget.TextView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.module.LoadMoreModule
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.zat.mes.andrmes.R
import com.zat.mes.andrmes.data.GetBomNotifiBean
import com.zat.mes.andrmes.data.GetPackBean

/**
 * @author zy
 * @date :2020-02-22 09:28
 * @description: 领料通知单
 */
class GetBomNotifiAdapter(layoutResId: Int) :
    BaseQuickAdapter<GetBomNotifiBean, BaseViewHolder>(layoutResId), LoadMoreModule {

    override fun convert(helper: BaseViewHolder, item: GetBomNotifiBean) {
        helper.setText(R.id.tvYarnInformNo,"单号："+item?.yarnInformNo)
            .setText(R.id.tvOutProcessNo,"加工单号："+item?.outProcessNo)
            .setText(R.id.tvFactoryID,"加工厂编号："+item?.factoryID)
            .setText(R.id.tvSumWeigh,"总重量："+item?.sumWeight)
            .setText(R.id.tvMaker,"制单人："+item?.maker)
            .setText(R.id.tvMakeDate,"制单日期："+item?.makeDate)
    }
}